import Component from "./Component"
import Layer from "./Layer"
function ComponentArea() {
    const onChange = (key: string) => {
        console.log(key);
    };

    const items= [
        {
            key: 'component',
            label: '组件',
            children: <Component></Component>,
        },
        {
            key: 'layer',
            label: '图层',
            children: <Layer></Layer>,
        },
    ];

    return <Tabs defaultActiveKey="component" items={items} indicator={{size:150}} centered={true} tabBarGutter={110}
    onChange={onChange} />
}
export default ComponentArea